我已经写了这篇主动记录$query=$this->db->from('tbl_restaurantastr,tbl_restaurant_serviceareaastrs,tbl_restaurant_cuisinesastrc')->where('tr.id','trs.restaurant_id')->where('tr.id','trc.restaurant_id')->where('trs.servicearea_subujrb',$search_suburb)->get();这会生成以下查询,该查询提供0行。SELECT*FROM`tbl_restaurant`as`tr`,`tbl
我有以下mysql表:CREATETABLEtest(idINT,_idINT,nameVARCHAR(30),ageINT);INSERTINTOtest(id,_id,name,age)VALUES(1,1,'Lorem',20),(2,1,'Ipsum',21),(3,1,'Dolor',22),(4,1,'Sit',23),(5,1,'Amet',24),(6,1,'Consectetur',25),(7,1,'Adipiscing',26),(8,2,'Elit',27),(9,2,'In',28),(10,2,'Non',29),(11,2,'Gravida',30),(1